package biz.obake.team.touchprotector;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;

public interface b extends IInterface {

    public static abstract class a extends Binder implements b {

        /* renamed from: biz.obake.team.touchprotector.b$a$a  reason: collision with other inner class name */
        private static class C0061a implements b {

            /* renamed from: b  reason: collision with root package name */
            public static b f1548b;

            /* renamed from: a  reason: collision with root package name */
            private IBinder f1549a;

            C0061a(IBinder iBinder) {
                this.f1549a = iBinder;
            }

            public String Q() {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("biz.obake.team.touchprotector.ITPBridgeService");
                    if (!this.f1549a.transact(1, obtain, obtain2, 0) && a.y0() != null) {
                        return a.y0().Q();
                    }
                    obtain2.readException();
                    String readString = obtain2.readString();
                    obtain2.recycle();
                    obtain.recycle();
                    return readString;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void X() {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("biz.obake.team.touchprotector.ITPBridgeService");
                    if (this.f1549a.transact(5, obtain, obtain2, 0) || a.y0() == null) {
                        obtain2.readException();
                        obtain2.recycle();
                        obtain.recycle();
                        return;
                    }
                    a.y0().X();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public IBinder asBinder() {
                return this.f1549a;
            }

            public void c0(String str, String str2) {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("biz.obake.team.touchprotector.ITPBridgeService");
                    obtain.writeString(str);
                    obtain.writeString(str2);
                    if (this.f1549a.transact(3, obtain, obtain2, 0) || a.y0() == null) {
                        obtain2.readException();
                        obtain2.recycle();
                        obtain.recycle();
                        return;
                    }
                    a.y0().c0(str, str2);
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public boolean d0(int i, int i2, int i3, boolean z, long j) {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("biz.obake.team.touchprotector.ITPBridgeService");
                    int i4 = i;
                    obtain.writeInt(i);
                    int i5 = i2;
                    obtain.writeInt(i2);
                    int i6 = i3;
                    obtain.writeInt(i3);
                    boolean z2 = true;
                    obtain.writeInt(z ? 1 : 0);
                    obtain.writeLong(j);
                    try {
                        if (this.f1549a.transact(4, obtain, obtain2, 0) || a.y0() == null) {
                            obtain2.readException();
                            if (obtain2.readInt() == 0) {
                                z2 = false;
                            }
                            obtain2.recycle();
                            obtain.recycle();
                            return z2;
                        }
                        boolean d0 = a.y0().d0(i, i2, i3, z, j);
                        obtain2.recycle();
                        obtain.recycle();
                        return d0;
                    } catch (Throwable th) {
                        th = th;
                        obtain2.recycle();
                        obtain.recycle();
                        throw th;
                    }
                } catch (Throwable th2) {
                    th = th2;
                    obtain2.recycle();
                    obtain.recycle();
                    throw th;
                }
            }

            public void g0(String str) {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("biz.obake.team.touchprotector.ITPBridgeService");
                    obtain.writeString(str);
                    if (this.f1549a.transact(2, obtain, obtain2, 0) || a.y0() == null) {
                        obtain2.readException();
                        obtain2.recycle();
                        obtain.recycle();
                        return;
                    }
                    a.y0().g0(str);
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }
        }

        public a() {
            attachInterface(this, "biz.obake.team.touchprotector.ITPBridgeService");
        }

        public static b x0(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("biz.obake.team.touchprotector.ITPBridgeService");
            return (queryLocalInterface == null || !(queryLocalInterface instanceof b)) ? new C0061a(iBinder) : (b) queryLocalInterface;
        }

        public static b y0() {
            return C0061a.f1548b;
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) {
            if (i == 1) {
                parcel.enforceInterface("biz.obake.team.touchprotector.ITPBridgeService");
                String Q = Q();
                parcel2.writeNoException();
                parcel2.writeString(Q);
                return true;
            } else if (i == 2) {
                parcel.enforceInterface("biz.obake.team.touchprotector.ITPBridgeService");
                g0(parcel.readString());
                parcel2.writeNoException();
                return true;
            } else if (i == 3) {
                parcel.enforceInterface("biz.obake.team.touchprotector.ITPBridgeService");
                c0(parcel.readString(), parcel.readString());
                parcel2.writeNoException();
                return true;
            } else if (i == 4) {
                parcel.enforceInterface("biz.obake.team.touchprotector.ITPBridgeService");
                boolean d0 = d0(parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt() != 0, parcel.readLong());
                parcel2.writeNoException();
                parcel2.writeInt(d0 ? 1 : 0);
                return true;
            } else if (i == 5) {
                parcel.enforceInterface("biz.obake.team.touchprotector.ITPBridgeService");
                X();
                parcel2.writeNoException();
                return true;
            } else if (i != 1598968902) {
                return super.onTransact(i, parcel, parcel2, i2);
            } else {
                parcel2.writeString("biz.obake.team.touchprotector.ITPBridgeService");
                return true;
            }
        }
    }

    String Q();

    void X();

    void c0(String str, String str2);

    boolean d0(int i, int i2, int i3, boolean z, long j);

    void g0(String str);
}
